package com.demo.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EmailNotificationDTO {

    /**
     * 通知类型
     */
    @NotNull(message = "邮件类型不能为空")
    private String type;

    /**
     * 接收方
     */
    @NotNull(message = "接收方不能为空")
    private String receiver;

    /**
     * 抄送
     */
    private String carbonCopy;

    /**
     * 密送
     */
    private String blindCarbonCopy;

    /**
     * 标题
     */
    @NotNull(message = "标题不能为空")
    private String title;

    /**
     * 内容
     */
    @NotNull(message = "内容不能为空")
    private String content;

    /**
     * 备注
     */
    private String note;
}
